Skip to content

fix(demo): increase number of dynamic threads#150

Merged
kr-t merged 1 commit intomainfrom
bump-demo-threads
Feb 2, 2026
Merged

fix(demo): increase number of dynamic threads#150
kr-t merged 1 commit intomainfrom
bump-demo-threads

Conversation

@casaroli
Copy link
Contributor

@casaroli casaroli commented Feb 2, 2026

Description

Depending on the platform, these get set to very low values.

Increase the number of dynamic POSIX threads and mutexes, so the demo can run fine on b_u585i_iot02a.

  • Fixes issue: demo does not work on b_u585i_iot02a

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Build and test on the real board

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

Depending on the platform, these get set to very low values.

Increase the number of dynamic POSIX threads and mutexes, so
the demo can run fine on b_u585i_iot02a.

Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
@kr-t
Copy link
Collaborator

kr-t commented Feb 2, 2026

Fixed demo app on U585 even without the PSRAM
Closes #135

I: RegisI: Started container '5b850d1' on runtime 'wamr/wasip1'
tered dispatcher for type 0: timer_callback
I: Started timer 1 with interval 2000ms, periodic=1
Publisher initialized: timer 1 started, publishing to test/topic
Published: Test message 0 to topic test/topic
Received message: topic=test/topic, content_type=text/plain, payload=Test message 0, len=15
I: Sent kill signal to container 'f1e1e8d'
I: Sent kill signal to container '5b850d1'
I: Container 'f1e1e8d' is running
W: Main function returned error in context 0x200169b0 exception: None
E: Container 0x200169b0 exception: Exception: terminated by user
I: Cleaning up module resources
I: Decremented resource count: type=3, count=0
I: Module uW: Main function returned error in context 0x2001a708 exception: None
E: Container 0x2001a708 exception: Exception: terminated by user
I: Cleaning up module resources
I: Decremented resource count: type=0, count=0
I: Module unrnregistered: 0x20017da8
I: Context 0x200169b0 completed successfully
I: Container 'f1e1e8d' exited. Result is = 0
egistered: 0x20018d68
I: Context 0x2001a708 completed successfully
I: Container '5b850d1' exited. Result is = 0
I: Container 'f1e1e8d' was exited
I: Container 'f1e1e8d' was stopped
Subscriber exited with status 0
I: Container '5b850d1' was exited
I: Container '5b850d1' was stopped
Publisher exited with status 0
I: Removed container 'f1e1e8d'
I: Removed container '5b850d1'
I: OCRE common shutdown successfully
Demo completed successfully

@kr-t kr-t merged commit dccd351 into main Feb 2, 2026
17 checks passed
@kr-t kr-t deleted the bump-demo-threads branch February 2, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants